﻿using System;

namespace IceDog.DNL.CSharp.DesignPattern.FlyweightPattern.CirclePool
{
    public class Circle:IShapeAction
    {
        public string Color { get; set; }
        public int X { get; set; }
        public int Y { get; set; }
        public int Radius { get; set; }

        public Circle(string color)
        {
            Color = color;
        }

        /// <summary>Initializes a new instance of the <see cref="T:System.Object"></see> class.</summary>
        public Circle(string color, int x, int y, int radius)
        {
            Color = color;
            X = x;
            Y = y;
            Radius = radius;
        }

        /// <summary>
        /// 绘制图形
        /// </summary>
        public void Draw()
        {
            Console.WriteLine($"Circle: Draw() [Color : {Color}, x : {X}, y :{Y}, radius :{Radius}");
        }
    }
}
